<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>promise指定多个调用</title>
</head>
<body>
    <script>
        let P = new Promise((resolve, reject) => {
            resolve("success");
        });
        P.then(value => {
            console.log(value);
        })
        P.then(value => {
            alert(value);
        })
    </script>
</body>
</html>